package com.parenting.enums;

import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * @author zcj
 * @description
 * @date 2021/05/2021/5/21
 **/
@Getter
@AllArgsConstructor
public enum ChildLabelEnum {

    ONEBABY(1, "一个宝宝"),
    TWOBABY(2, "两个宝宝"),
    THREEBABY(3, "三个宝宝"),
    FOURBABY(4, "四个宝宝"),
    FIVEBABY(5, "五个宝宝"),
    SIXBABY(6, "六个宝宝"),
    SEVENBABY(7, "七个宝宝");
    private int num;
    private String label;

    public static String getChinese(int num) {
        ChildLabelEnum[] childLabelEnums = values();
        for (ChildLabelEnum childLabelEnum : childLabelEnums) {
            if (childLabelEnum.getNum() == num) {
                return childLabelEnum.getLabel();
            }
        }
        return null;
    }
}
